<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<h3>箭头函数，新标准</h3>
	</body>
	<script type="text/javascript">
		// js 函数定义，无参
		var js0 = function(){
			console.log('js0 无参');
		}
		js0();
		// 箭头函数定义
		var es0 = () =>{
			console.log('es0 无参');
		}
		es0();
		var es1 = () => console.log('es1 无参');
		es1();
		var js1 = function(arg){
			return arg
		}
		console.log(js1('你总是'));
		console.log(js1(2))

		var es1 = arg => arg;
		console.log(es1("es1 一个参数"));
		console.log('es1 一个参数');
		
	</script>
</html>
